import JobSeekerView from "./components/JobSeekerView.vue";
import RecruiterView from "./components/RecruiterView.vue";
import {createRouter, createWebHashHistory} from "vue-router";

const routes: any = [
    {path: '/', redirect: '/job-seeker-view'},
    {path: '/job-seeker-view', component: JobSeekerView},
    {path: '/recruiter-view', component: RecruiterView}
]
export const router = createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHashHistory(),
    routes, // `routes: routes` 的缩写
})